#include <stdio.h>
#include <string.h>
//zifuchuanchangdu
int char_len(char *s)
{
    int count =0;
    while(s[count]!='\0')
    {
        count ++;
    }
    return count;
}
//zifuchuanbijiao
int is_equal(char *s1,char *s2)
{
    if(char_len(s1)!=char_len(s2))
        return 0;
    for(int i=0;i<char_len(s1);i++)
    {
        if(s1[i]!=s2[i])
            return 0;
    }
    return 1;
}
void main()
{
    char a[10]={'h','e','l','l','o','\0'};
    printf("%s\n",a);
    char b[10]="hello";
    printf("%s\n",b);
    char c[]="hello";
    c[1]='l';
    printf("%s c_size:%d\n",c,sizeof(c));
    printf("c_len:%d\n",char_len(c));
    char d[]="hello";
    if(1==is_equal(d,b))
        printf("xiangtong\n");



}